#pragma once
#include <windows.h>
#include <qtwidgets>
#include "GCapture.h"
#include "ui_camera_test.h"

class camera_test : public QMainWindow
{
    Q_OBJECT

public:
    camera_test(QWidget *parent = Q_NULLPTR);
    ~camera_test() {
        delete m_pCamera;
    }
    static void __stdcall ImageProcessCallback(int iCamId, const BYTE* pImage, void* pContext);
    static void __stdcall CameraEventCallback(int iCamId, __int64 evt, void* pContext);

public slots:
    void OnClickOpenCamera();
    void OnClickCloseCamera();

private:
    Ui::camera_testClass ui;
    GCamera* m_pCamera = 0;
};
